/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvc.example.persistence.dao;

import mvc.example.persistence.dao.exception.DAOException;
import java.util.List;
import mvc.example.bussines.domain.AbstractEntity;

/**
 *
 * @author zeta
 */
public interface DAO<T extends AbstractEntity, ID > {
    void save(T entity) throws DAOException;
    void update(T entity) throws DAOException;
    T find(ID id);
    void delete(ID id) throws DAOException;
    List<T> getAll();
}
